package com.heqiang.spring.config;

import com.heqiang.spring.BeansException;

public interface BeanPostProcessor {

    /**
     * 在bean对象执行前执行方法
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInitialization(Object bean,String beanName) throws BeansException;

    /**
     * 在bean对象执行后执行方法
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessAfterInitialization(Object bean,String beanName) throws BeansException;
}
